<template>
  <div class="crad" @click="handleClick">
    <el-card shadow="always">
      <div class="crad-wrappar">
        <div class="header">
          <i class="el-icon-warning" style="color: #F56C6C; font-size: 24px"></i>
          <span>登录器无法运行!</span>
        </div>
        <span style="color: #F56C6C; margin-bottom: 10px">最近劫持严重，导致登入器无法正常运行</span>
        <span style="color: #409eff;">点击查看解决办法</span>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'FloatingWindow',
  methods: {
    handleClick () {
      const { href } = this.$router.resolve({
        name: 'about'
      })
      window.open(href, '_blank')
    }
  }
}
</script>

<style>
  .el-card {
    background-color: #e6a23c !important;
  }
</style>

<style scoped lang="scss">
.crad {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 99;
  cursor: pointer;
  .crad-wrappar {
    display: flex;
    flex-direction: column;
    align-items: center;
    .header {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 20px;
      span {
         margin-left: 4px;
       }
    }
  }
}
</style>
